#!/usr/bin/env bash
source "./.env"

# 指定容器和用户
CONTAINER="laravel-fpm"
USER="www-data"

# 指定应用目录
APP_DIR=$1

# 执行命令
exec docker exec -u "$USER" -i -T "$CONTAINER" \
     php "$SITE_DIR/$APP_DIR/artisan" "${@:2}"